import request from '@/utils/request'

// 新增数据
export function addDevice(data) {
    return request({
        url: '/routing/xunjian/device/add',
        method: 'post',
        data: data
    })
}

// 获取数据
export function getDevice(data) {
    return request({
        url: '/routing/xunjian/device/list',
        method: 'get',
        params: data
    })
}

// 删除数据
export function delDevice(id) {
    return request({
        url: `/routing/xunjian/device/${id}`,
        method: 'delete'
    })
}

// 修改
export function updateDevice(data) {
    return request({
        url: '/routing/xunjian/device',
        method: 'put',
        data: data
    })
}

// 批量导出
export function deviceExport(data) {
    return request({
        url: '/routing/xunjian/device/export',
        method: 'get',
        params: data
    })
}
